﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CCD
{
    public partial class MainUI : Form
    {
        public MainUI()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            ModelAndBlockManager son = new ModelAndBlockManager();
            son.Owner = this;
            this.Hide();
            son.Show();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            ChoiceModelDialog son = new ChoiceModelDialog();
            son.Owner = this;
            son.ShowDialog();
        }
        
        public void GotoProcessUI(string ModelName)
        {
            ProcessUI son = new ProcessUI(ModelName);
            son.Owner = this;
            this.Hide();
            son.Show();
        }
    }
}
